<#include
"admin/common/include/sysparam.html">
 

<div id="navModel" class="modal hide fade" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true" >
	<div class="modal-header green">
	 
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
		<h4 id="myModalLabel">
			<strong>块元素属性编辑</strong>
		</h4>
	</div>
	<div class="alert alert-error " id="blockVarEditErrTip" style="display: none;"></div>

	<div class="modal-body" style="max-height: 550px;">
		<!-- BEGIN FORM-->
		<form action="${contextPath}/Admin-WebBlockVar-save.action"
			id="webBlockVarAddForm" class="form-horizontal" method="post">
			<input type="hidden" name="id" value="${(blockVarBean.id)?if_exists}" />
			<input type="hidden" name="webBlockId" id="webBlockId" value="${webBlockId}" /> 
			<div class="control-group">
				<label class="control-label">参数名称<span class="required">*</span></label>
				<div class="controls">
					<input type="text" name="varName" id="varName" require="true"
						datatype="require"  msg="参数名称不能为空"
						class="m-wrap medium" value="${(blockVarBean.varName)?if_exists}" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">参数KEY</label>
				<div class="controls">
					<input type="text" name="varKey" id="varKey" require="true"
						datatype="require"  msg="参数KEY不能为空"
						class="m-wrap medium" value="${(blockVarBean.varKey)?if_exists}" />
				</div>
			</div>
		 	<div class="control-group">
				<label class="control-label">参数值</label>
				<div class="controls">
					<input type="text" name="varValue" id="varValue" require="true"
						datatype="require"  msg="参数KEY不能为空"
						class="m-wrap medium" value="${(blockVarBean.varValue)?if_exists}" />
				</div>
			</div>  
			<div class="control-group">
				<label class="control-label">是否有效<span class="required">*</span></label>
				<div class="controls"><@select paramCode=iseffCode
					value=(blockVarBean.iseff)?if_exists item=' name="iseff" require="true"
					datatype="require" msg="是否有效不能为空"'/></div>
			</div>

			<div class="modal-footer">
				<button type="button" id="blockvar_save_btn" class="btn blue">保存</button>
				<button class="btn " data-dismiss="modal" aria-hidden="true">关闭</button>
			</div>
		</form>
		<!-- END FORM-->
	</div>
</div>

<script>
	jQuery(document).ready(function() {
	  
		tableAction.initSaveAction({
			formId : 'webBlockVarAddForm',
			queryUrl : '${contextPath}/Admin-WebBlockVar-show.action?webBlockId='+$('#webBlockId').val(),
			saveUrl : '${contextPath}/Admin-WebBlockVar-save.action',
			saveBtnId : 'blockvar_save_btn',
			areaId:'blockVarShowDiv',
			errZoneId:'blockVarEditErrTip' 
		});
	});
</script>